import VueRouter from 'vue-router'
import routes from './routes'
let base = '/crm'
if(window.mfe){
    base = (window.mfe_nav_router_base_path.commonNav || '') + base
    window.mfe_nav_router_base_path.base = base
}
const router = new VueRouter({
    mode: 'history',
    base: base,
    routes: routes
})

router.beforeEach((to, from, next) => {
    next()
})
export default router